<%= form_for @user, url: {action: "create"} do |f| %>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  
  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  
  <div class="field">
  	<%= f.label :project %><br />
    <%= select("user", "project_id", Project.all.collect {|p| [ p.name, p.id ] }, {include_blank: 'None'}) %>
  </div>
  
  <div class="field">
  	<%= f.label :role %><br />
    <%= select("user", "role", Role.all.collect {|r| [ r.role ] }, {include_blank: 'None'}) %>
  </div>  
  
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
